﻿// -----------------------------------------------------------------------
// <copyright file="Vendor_BLL.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace PMSGSC.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using PMSGSC.DAL;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class Vendor_BLL
    {
        public static List<Vendor> GetAll(int shipID)
        {
            return Vendor_DAL.GetAll(shipID);
        }
        public static bool Insert(Vendor vendor)
        {
            return Vendor_DAL.Insert(vendor);
        }
        public static Vendor GetDataByCode(string code, int shipID)
        {
            return Vendor_DAL.GetDataByCode(code, shipID);
        }
        public static Vendor GetDataByName(string name, int shipID)
        {
            return Vendor_DAL.GetDataByName(name, shipID);
        }
        public static bool Update(Vendor vendor)
        {
            return Vendor_DAL.Update(vendor);
        }
        public static bool Delete(Vendor vendor)
        {
            return Vendor_DAL.Delete(vendor);
        }
        public static bool IsExits(Vendor vendor)
        {
            return Vendor_DAL.IsExits(vendor);
        }
        public static bool IsRelationship(Vendor vendor)
        {
            return Vendor_DAL.IsRelationship(vendor);
        }
    }
}
